<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
    <link href="<s:url value="resources/css/main.css"/>" rel="stylesheet" type="text/css"/>
    <title><s:text name="label.customers"/></title>
</head>
<body>

<table align=center>
<tr><td><h1 ><s:text name="label.custOrders"/> </h1></td></tr>
</table>
	<table width=600 align=center>
	    <tr>  Bidirectional -Load CustOrder with Customer</td>
	     </tr>
	</table><br/>
<table align=center class="borderAll">
    <tr>
        <th><s:text name="label.custOrder.orderDate"/></th>
        <th><s:text name="label.custOrder.requiredDate"/></th>
        <th><s:text name="label.custOrder.shippedDate"/></th>
        <th><s:text name="label.customer.firstName"/></th>
        <th><s:text name="label.customer.lastName"/></th>
        <th>&nbsp;</th>
    </tr>
    <s:iterator value="custOrders" status="status">
        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
            <td class="nowrap"><s:property value="orderDate"/></td>
            <td class="nowrap"><s:property value="requiredDate"/></td>
            <td class="nowrap"><s:property value="shippedDate"/></td>
            <td class="nowrap"><s:property value="customer.firstName"/></td>
            <td class="nowrap"><s:property value="customer.lastName"/></td>
        </tr>  		
	 </s:iterator>
    </table>
</body>
</html>
